﻿<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="eduManageDocumentsInCourse.aspx.cs" Inherits="eduManageDocumentsInCourse" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="EduContent" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td align="center">
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvwCourses" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="CourseID" DataSourceID="SqlDataSource1">
                    <Columns>
                        <asp:BoundField DataField="CourseID" HeaderText="CourseID" 
                            InsertVisible="False" ReadOnly="True" SortExpression="CourseID" 
                            Visible="False" />
                        <asp:BoundField DataField="课程名称" HeaderText="课程名称" SortExpression="课程名称">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:HyperLinkField Text="&lt;img src='images/Edit.gif' border='0' /&gt;" 
                DataNavigateUrlFormatString="eduEditDocumentsForCourse.aspx?CourseID={0}" 
                DataNavigateUrlFields="CourseID" />
                    </Columns>
                    <EmptyDataTemplate>
                        <b>当前没有课程信息</b>
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:smsConnectionString %>" 
        
                    
                    SelectCommand="SELECT CourseID, CourseName AS 课程名称 FROM CourseInfo WHERE (IsDeleted &lt;&gt; 1)">
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

